home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3505 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: ESC-Key Problem under ncurses!
  5. Date: Mon, 29 Jan 96 16:22:39 GMT
  6. Organization: none
  7. Message-ID: <822932559snz@genesis.demon.co.uk>
  8. References: <4eijhc$ab2@london.uni-paderborn.de>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4eijhc$ab2@london.uni-paderborn.de>
  15.            gerold@london.uni-paderborn.de "Gerold Polle" writes:
  16.  
  17. >Hi !
  18. >
  19. >When I'm reading the ESC-Key with getch() under ncurses, it will
  20. >take about 1 second! All other special keys do it immediately. Is 
  21. >there a way to change this delay???
  22.  
  23. The delay is there as a guard time to ensure the ESC code is not part of
  24. an escape sequence (e.g. generated by a function or cursor movement key).
  25. It is the classic problem of overloading a character code. Curses is
  26. a Unix developed library (although it has been ported to other OSs) so I
  27. suggest you ask for further information in comp.unix.programmer.
  28.  
  29. -- 
  30. -----------------------------------------
  31. Lawrence Kirby | fred@genesis.demon.co.uk
  32. Wilts, England | 70734.126@compuserve.com
  33. -----------------------------------------
  34.